package cn.com.surker.control.entity;

import cn.com.surker.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 工控机原始消耗表
 * </p>
 *
 * @author admin
 * @since 2025-01-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ControlExpend extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 标识
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/**
	 * 生产线ID
	 */
	private Long lineId;

	/**
	 * erp对应表的盘id,关联ControlExpendBatch表的id
	 */
	private Long erpBatchId;

	/**
	 * 工控机的消耗记录id
	 */
	private String conExpendNo;

	/**
	 * 工控仓位
	 */
	private String storage;

	/**
	 * 工控机材料
	 */
	private String material;

	/**
	 * 材料ID
	 */
	private Long erpMaterialId;

	/**
	 * 仓位ID
	 */
	private Long erpStorageId;

	/**
	 * 是否自动(0:自动1:手机)
	 */
	private Integer isAuto;

	/**
	 * 施工配比用量
	 */
	private Double formulaQuantity;

	/**
	 * 工控设定用量
	 */
	private Double controlSetQuantity;

	/**
	 * 工控实际用量
	 */
	private Double controlRealQuantity;

	/**
	 * 工控含水率
	 */
	private Double controlWater;

	/**
	 * 下料时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date useTime;

	/**
	 * 工控机的盘号
	 */
	@TableField(exist = false)
	private String conBatchNo;
}
